package selection;

public class Teacher {
	private int id;//定义int变量id，存放id
	//private类型的数据成员只能在定义的时候修改，其余任何地方都不可以，该类的对象也不可以。
	private String teacherName;//定义string类型变量，用于存放老师姓名
    private Course[] courses;
 //构造函数
    public Teacher() {
    super();
    courses = new Course[3];
    }
    public Teacher(int id,String teacherName){
    	this.id=id;
    	this.teacherName=teacherName;
    	courses = new Course[3];
    }
 //修改或是添加属性
    public int getId() {
    	return id;
    }
    public void setId(int id) {
    	this.id = id;
    }
    public String getTeacherName() {
    	return teacherName;
    }
    public void setTeacherName(String teacherName) {
    	this.teacherName = teacherName;
    }
}
